package com.lanou.mapper;

import com.lanou.bean.Service;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ServiceMapper {
    int deleteByPrimaryKey(Integer serviceId);

    int insert(Service record);

    int insertSelective(Service record);

    Service selectByPrimaryKey(Integer serviceId);

    int updateByPrimaryKeySelective(Service record);

    int updateByPrimaryKey(Service record);


    List<Service> selectAllService();

    Integer selectAccountIdByIdcard(String idcardNo);

    List<String> selectAllCostName();

    Integer selectCostIdByName(String name);

    int insertService(@Param("service") Service service, @Param("account_id") Integer account_id,@Param("cost_id") Integer cost_id);

    Service selectServiceById(Integer service_id);

    int updateServiceById(@Param("service_id") Integer service_id,@Param("unix_host") String unix_host,@Param("os_username") String os_username);

    int updateService(@Param("service_id") Integer service_id, @Param("close_date") Date close_date);

    int updateServiceStatus(@Param("service_id") Integer service_id,@Param("pause_date") Date pause_date);

    int updateServiceStatus1(@Param("service_id") Integer service_id);
}